package com.shop.flowershopmanager.controller;

import com.shop.flowershopmanager.service.FlowersService;
import com.shop.flowershopmanager.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class FlowersController {
    @Resource
    private FlowersService flowersService;

    @GetMapping("/v1/getFlowers")
    public R<Object> getFlowers(String fName,String origin,String cName) {
       return R.ok(flowersService.getFlowers(fName,origin,cName));
    }
}
